<?php

namespace yifang\provider;

use yifang\lib\MultiApp;

class MultiAppProvider extends Provider
{
    /**
     * 服务启动
     */
    public function boot(){
        $this->app->event->listen('HttpRun', function () {
            $this->app->middleware->add(MultiApp::class);
        });
    }
}